﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Sisocana.Core.Models.RedSocialAsociadoModel>>" %>


    <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("p a, input:submit,input:file ").button();
        });
    </script>

    
    <p>
         <%: Html.ActionLink("Create New", "CreateRS", new { id = ViewData["idSitio"]})%>
    </p>
<%if (Model != null && Model.Count() != 0){ %>
    <h3>Social network Asociated.</h3>
<table>
    <tr>
        <th></th>
        <th>
            Social Network Name
        </th>
        <th>
            Service Account
        </th>
        <th>
            Search Tag
        </th>
        <th>
            Size
        </th>

    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%--<%: Html.ActionLink("Edit", "EditRS", new { id=item.id }) %> |            
            <%: Html.ActionLink("Delete", "DeleteRS", new { id=item.id }) %>--%>

            <%= Html.MakeImgLink(Url.Action("EditRS", "Site", new { id = item.id}),"Edit" ,"edit.png")%> |
            <%= Html.MakeImgLink(Url.Action("DeleteRS", "Site", new { id = item.id }),"Delete" ,"delete.png")%>


        </td>    
        
        <td>
            <%: item.RedesSocialesName %>
            <img alt="logo" height="15px" width"15px"   src='<%= Url.Action( "imagen", "RedesSociales", new { id = item.RedesSocialesName.Trim() } ) %>' />
        </td>
        <td>
            <%: item.tagUser%>
        </td>
        <td>
            <%: item.tagBusqueda %>
        </td>
        <td>
            <%: item.cantVisualizar %>
        </td>
    </tr>  
<% } %>

</table>
<% } %>




